@echo off
echo 正在启动作品展示系统...
echo.

echo 1. 检查依赖...
if not exist "node_modules" (
    echo 安装前端依赖...
    call npm install
)

if not exist "server/node_modules" (
    echo 安装后端依赖...
    call npm run install:server
)

echo.
echo 2. 启动服务...
echo 前端: http://localhost:9080
echo 后端: http://localhost:9081
echo.
echo 按 Ctrl+C 停止服务
echo.

call npm run dev